/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.market.entity.EventLotteryDrawHistory;
import com.kaaction.modules.market.dao.EventLotteryDrawHistoryDao;

/**
 * 抽奖记录Service
 * @author zengbiao
 * @version 2017-04-23
 */
@Service
@Transactional(readOnly = true)
public class EventLotteryDrawHistoryService extends CrudService<EventLotteryDrawHistoryDao, EventLotteryDrawHistory> {

	public EventLotteryDrawHistory get(String id) {
		return super.get(id);
	}
	
	public EventLotteryDrawHistory getByEventId(String eventId,String openid) {
		return super.dao.getByEventId(eventId,openid);
	}
	
	public List<EventLotteryDrawHistory> findList(EventLotteryDrawHistory eventLotteryDrawHistory) {
		return super.findList(eventLotteryDrawHistory);
	}
	
	public Page<EventLotteryDrawHistory> findPage(Page<EventLotteryDrawHistory> page, EventLotteryDrawHistory eventLotteryDrawHistory) {
		return super.findPage(page, eventLotteryDrawHistory);
	}
	
	@Transactional(readOnly = false)
	public void save(EventLotteryDrawHistory eventLotteryDrawHistory) {
		super.save(eventLotteryDrawHistory);
	}
	
	@Transactional(readOnly = false)
	public void delete(EventLotteryDrawHistory eventLotteryDrawHistory) {
		super.delete(eventLotteryDrawHistory);
	}
	
}